package material.factory;

/**
 * 芝加哥的披萨店
 */
public class ChicagoPizzaStore extends PizzaStore {
    @Override
    Pizza createPizza(String type) {
        if (type.equals("cheese")) {
            return new ChicaoStyleCheesePizza();
        } else if (type.equals("veggie")) {
            return new ChicaoStyleVeggiePizza();
        } else if (type.equals("clam")) {
            return new ChicaoStyleClamPizza();
        } else if (type.equals("pepperoni")) {
            return new ChicaoStylePepperoniPizza();
        }
        return null;
    }
}
